package com.zh.netty.groupchat;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Description: 客户端处理器
 * @ClassName GroupChatClientHandler
 * @date: 2021.03.08 15:51
 * @Author: zhanghang
 */
public class GroupChatClientHandler extends SimpleChannelInboundHandler<String> {
    // 读取数据
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        System.out.println(msg);
    }
}
